import {systemServer} from '../baseApi'

export class userApi {
  static save(data) {
    return systemServer.connection('POST', '/sys/user/save', data)
  }

  static delete(data) {
    return systemServer.connection('POST', '/sys/user/delete', data)
  }

  static findByName(data) {
    return systemServer.connection('GET', '/sys/user/findByName', data)
  }

  static update(data) {
    return systemServer.connection('POST', '/sys/user/update', data)
  }

  static findPage (data) {
    return systemServer.connection('POST', '/sys/user/findPage', data)
  }

  static getUserInfo(data) {
    return systemServer.connection('GET', '/sys/user/getUserInfo', data)
  }
}
